﻿using LView.CMS.Core;
using MongoDB.Bson.Serialization.Attributes;
using System;

namespace LView.CMS.Models
{
    public class LLog
    {
        public string Id { get; set; }

        [MongoIndex("IDX_LLog_UserId")]
        public string UserId { get; set; }

        public string UserName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 考试的分数
        /// </summary>
        public int Score { get; set; }

        /// <summary>
        /// 是否Pass
        /// </summary>
        public bool Pass { get; set; }

        /// <summary>
        /// 系统备注 (预留):自动阅卷/人工复查/....
        /// </summary>
        public string SystemRemrk { get; set; }

        /// <summary>
        /// 任务信息
        /// </summary>
        public LTask LTask { get; set; }
        /// <summary>
        /// 试卷信息
        /// </summary>
        public LExam LExam { get; set; }
    }
}
